"""
@Time ： 2025/9/18 10:41
@Auth ： zh
@File ：main.py
"""
"""主程序入口"""
from student_queries import get_all_students, get_adult_students, get_student_by_name

if __name__ == "__main__":
    # 示例1: 查询所有学生
    print("\n--- 所有学生信息 ---")
    all_students = get_all_students()
    for student in all_students:
        print(student)

    # 示例2: 查询成年学生
    print("\n--- 18岁及以上的学生 ---")
    adult_students = get_adult_students()
    for student in adult_students:
        print(student)

    # 示例3: 按姓名查询学生
    print("\n--- 姓名为张三的学生 ---")
    zhangsan = get_student_by_name("张三")
    for student in zhangsan:
        print(student)
